package com.example.financeapi.controller;

import com.example.financeapi.config.annotation.PassToken;
import com.example.financeapi.entity.FSecuritiesCompany;
import com.example.financeapi.service.FSecuritiesCompanyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 券商表(FSecuritiesCompany)表控制层
 *
 * @author makejava
 * @since 2020-12-17 22:04:28
 */
@Slf4j
@RestController
@RequestMapping("fSecuritiesCompany")
public class FSecuritiesCompanyController {
    /**
     * 服务对象
     */
    @Resource
    private FSecuritiesCompanyService fSecuritiesCompanyService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @PassToken
    @GetMapping("selectOne")
    public FSecuritiesCompany selectOne(Integer id) {
        return this.fSecuritiesCompanyService.queryAll(id);
    }

}